import ts from 'rollup-plugin-typescript2'
import path from 'path'
import dts from 'rollup-plugin-dts';
export default [
    {
        input: "./src/core/index.ts",
        output: [
            {
                file: path.resolve(__dirname, './dist/index.esm.js'),
                format: "esm",
            },
            {
                file: path.resolve(__dirname, './dist/index.cjs.js'),
                format: "cjs"
            },
            {
                file: path.resolve(__dirname, './dist/index.js'),
                format: "umd",
                name: 'BuryingPoint'
            }
        ],
        plugins: [
            ts(),
        ]
    },
    {
        input: "./src/core/index.ts",
        output: {
            file: path.resolve(__dirname, './dist/index.d.ts'),
            format: "esm",
        },
        plugins: [dts()]
    }
] 